<template>
  <fieldset>
    <legend>插槽作用域</legend>
    <h1>一个组件的结构</h1>
    <slot name="scope" :a="arr"></slot>
  </fieldset>
</template>

<script>
export default {
  data() {
    return {
      arr: ["吃", "睡", "写代码"],
    };
  },
};
</script>